package domain;

public class LinkedNode<T> {

	private T cargo;
	
	private LinkedNode<T> previous;

	private LinkedNode<T> following;
	
	public T getCargo() {
		return cargo;
	}

	public LinkedNode<T> setCargo(T cargo) {
		this.cargo = cargo;
		return this;
	}

	public LinkedNode<T> getPrevious() {
		return previous;
	}

	public LinkedNode<T> setPrevious(LinkedNode<T> previous) {
		this.previous = previous;
		return this;
	}

	public LinkedNode<T> getFollowing() {
		return following;
	}

	public LinkedNode<T> setFollowing(LinkedNode<T> following) {
		this.following = following;
		return this;
	}
	
	
	
	
	
	
}
